package com.ssy.lingxi.platform.template.service.repository;
import com.ssy.lingxi.platform.template.service.entity.collect.MemberShopCollect;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


@Repository
public interface MemberShopCollectRepository extends JpaRepository<MemberShopCollect, Long> {

    void deleteByShopIdAndMemberIdAndUserId(Long shopId, Long memberId, Long userId);

    Page<MemberShopCollect> findAllByMemberIdAndUserId(Long memberId, Long userId, Pageable page);

    Boolean existsByShopIdAndMemberIdAndUserId(Long id, Long memberId, Long userId);
}
